/*****************************************************************
 Naicigam Engine v0.1

 File: VertexBuffer.inl
 Created: 01/03/08
*****************************************************************/



inline unsigned int IndexBuffer::GetId() const
{
	return id;
}

inline void IndexBuffer::SetIndex(short _index, short _v)
{
	indices[_index] = _v;
}


inline short IndexBuffer::GetIndex(short _index) const
{
	return indices[_index];
}


inline size_t IndexBuffer::GetIndexCount() const
{
	return indices.size();
}

inline const short* IndexBuffer::GetIndexPtr () const
{
	return &(indices.front());
}


inline short* IndexBuffer::GetIndexPtr ()
{
	return &(indices.front());
}